const path = require('path')

function resolve(dir) {
  return path.join(__dirname, dir)
}

module.exports = {
  publicPath: '/', //
  outputDir: 'dist', // 打包的目录
  productionSourceMap: false, // 生产环境是否生成 sourceMap 文件
  devServer: {
    port: 8080,
    open: true,
    overlay: {
      warnings: false,
      errors: true
    }
  },
  configureWebpack: {
    name: 'vue-admin',
    resolve: {
      // 设置别名
      alias: {
        '@': resolve('src')
      }
    }
  }
}
